#include<iostream>
#include<string>
using namespace std;

int main() {
    string s;
    getline(cin, s);
    // write your code here......
    reverse(s.begin(), s.end());

    cout << s;
    return 0;
}